#include <stdio.h>
int main(void)
{
    int d;
    printf("Enter a number: ");
    scanf("%d", &d);
    printf("The revrsal is: ");
    do {
        printf("%d", d % 10);
    } while ((d /= 10) > 0);
    printf("\n");
    return 0;
}